function checkForm(){
	/* sno*/
	if (document.getElementById("sno").value.length !=10) {
		document.getElementById("tips_sno").innerHTML = "<em style='color:#FF0000'>*学号由10位数字组成</em>";
		document.getElementById("sno").focus();
		return false;
	} else {
		document.getElementById("tips_sno").innerHTML = "OK!";

	}
	/*sname*/
	if (document.getElementById("sname").value.length < 3
			|| document.getElementById("sname").value.length >5) {
		document.getElementById("tips_sname").innerHTML = "<em style='color:#FF0000'>*姓名由3-5位字符组成</em>";
		document.getElementById("sname").focus();
		return false;
	} else {
		document.getElementById("tips_sname").innerHTML = "OK!";

	}
	/*idnumber*/
	if (document.getElementById("idnumber").value.length != 11) {
		document.getElementById("tips_idnumber").innerHTML = "<em style='color:#ff0000'>*身份证号由18位字符组成</em>";
		document.getElementById("idnumber").focus();
		return false;
	} else {
		document.getElementById("tips_idnumber").innerHTML = "<em style='color:green'>OK!</em>";
	}
	/*phone*/
	if (document.getElementById("phone").value.length != 11) {
		document.getElementById("tips_phone").innerHTML = "<em style='color:#ff0000'>*手机号由11位字符组成</em>";
		document.getElementById("phone").focus();
		return false;
	} else {
		document.getElementById("tips_phone").innerHTML = "<em style='color:green'>OK!</em>";
	}
	/*email*/
	var mail = document.getElementById("email").value;
	var pattern = /^[a-zA-Z0-9#_\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}]+@[a-zA-Z0-9]+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/;
	/*
	 * var pattern=/^([a-zA-Z0-9_-])+
	 * @([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2}) $ /;
	 */
	if (mail.length == 0) {
		document.getElementById("tips_email").innerHTML = "<em style='color:#FF0000'>电子邮件不能为空</em>";
		document.getElementById("email").focus();
		return false;
	} else if (!pattern.test(mail)) {
		document.getElementById("tips_email").innerHTML = "<em style='color:#FF0000'>email不合法</em>";
		document.getElementById("email").focus();
		return false;
	} else {
		document.getElementById("tips_email").innerHTML = "OK!";
	}
}